home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mntlib44.zoo
/
mntlib
/
getwd.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-01
|
297b
|
21 lines
#include <limits.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "lib.h"
/*
* char *getwd(char *buf)
* return cwd in buf
*/
char *
getwd(buf)
char *buf;
{
char *ret = getcwd(buf, PATH_MAX);
if (ret)
return ret;
strcpy(buf, strerror(errno));
return NULL;
}